#ifndef __CGAME_H__
#define __CGAME_H__

#include "GeneralInclude.h"
#include "Board.h"
#include "Ficha.h"
#include "EnemyManager.h"

class CGame : public IStateHandler
{
private:
    u32 IDLoading;
    CFicha Ficha;
    CBoard board;
    CEnemyManager em;
//    CScoreManager sm;

    u32 KeyPressedTimer;
    stringc ActualLevel;

    ITimer *TimerFichaMovement;
    ITimer *TimerShootFicha;
    ITimer *TimerPauseGame;

    bool CheatEnabled;
public:
    CGame();
    virtual ~CGame();

    void MoveFicha(u8 Key,bool Vertical,bool Minus);
    void ShootFicha(u8 Key);
    bool PauseGame(u8 Key,bool Pause);
    s32 EnterState();
    s32 ExitState();
    s32 Update();

	void FichaDoDestroyEnemiesAnimation(vector2du32 &ToWhere);
};

#endif
